<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 插入vue -->
    <script src="../code/js/vue2.js"></script>
</head>
<body>
    <div id="app">
      <p>{{name}}</p>
      <!-- 可以使用三元表达式,但是不能用if等判断 -->
      <p v-text = 'age>18?"ok":"no"'>></p>
      <p v-text='name+",见到你很高兴"'></p>
       <!-- 不能作用域单标签 -->
      <input type="text" v-text='name'>
    </div>
</body>

<!-- 构造函数 -->
 <script>
    var vur =  new Vue({
        el:'#app',
        data:{
            name:'jack',
            age:18,
            gender:'男'
        }
    })
 
 
 </script>
</html>